export function getDefaultItems(
  laneOptions: SelectOption[] = [],
  moduleOptions: SelectOption[] = [],
  isEdite = false,
) {
  return [
    {
      type: 'INPUT',
      label: '节点名称',
      name: 'name',
      inputProps: {
        allowClear: true,
        placeholder: '请输入节点名称',
      },
      rules: [
        {
          required: true,
          message: '请输入节点名称',
        },
      ],
    },
    {
      label: '组件类型',
      name: 'moduleType',
      type: 'SELECT',
      inputProps: {
        placeholder: '请选择组件类型',
        options: moduleOptions,
        disabled: true,
      },
      rules: [
        {
          required: true,
          message: '请选择组件类型',
        },
      ],
    },
    {
      label: '系统类别',
      name: 'systemType',
      type: 'SELECT',
      inputProps: {
        placeholder: '请选择系统类别',
        options: [
          { label: '内部系统', value: 'inner' },
          { label: '外部系统', value: 'outer' },
        ],
      },
      rules: [
        {
          required: true,
          message: '请选择系统类别',
        },
      ],
    },
    {
      label: '所属层级',
      name: 'preId',
      type: 'SELECT',
      inputProps: {
        placeholder: '请选择所属层级',
        options: laneOptions,
        disabled: isEdite,
      },
      rules: [
        {
          required: true,
          message: '请选择所属层级',
        },
      ],
    },
  ];
}
